From: Shivam Date: Sat, 21 Feb 2026 12:22:35 +0000 (+0530) Subject: appDisplay: Refresh folder preview when favorites change X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~26^2~1^2~36 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e9f24200e22b7a2e311224c4f16f7f0488ce6a11;p=gnome-shell.git appDisplay: Refresh folder preview when favorites change Pinning an app from inside a folder did not refresh the folder preview. FolderIcon._sync() was only listening to folder GSettings changes, while pinning updates the favorites setting instead. As a result, _sync() was never called and the preview could show stale icons or remain visible when the folder became empty. Fix this by also connecting _sync() to AppFavorites::changed, ensuring the folder preview updates correctly when favorites are modified. Closes : https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9026 Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 8430cb985..e52278cba 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2299,6 +2299,9 @@ export const FolderIcon = GObject.registerClass({ this._folder.connectObject( 'changed', this._sync.bind(this), this); + const appFavorites = AppFavorites.getAppFavorites(); + appFavorites.connectObject( + 'changed', this._sync.bind(this), this); this._sync(); }